<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";	
%>
<html>
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加菜单</title>
<jsp:include page="../../../common/easyui-css.inc" flush="true"/>
</head>
<body>
<form name="saveForm" id="saveForm" method="post">
<fieldset class="fieldset">
<legend class="legend">菜单基本信息</legend>  		
	<table class="table_save" width="96%" cellspacing="1" cellpadding="1" border="0">	
	<tr>		
		<td class="td_save" width="120" align="right" height="25">上级菜单:</td>
		<td width="200"><span id="pname_span" style="color: red;">${pname }</span>			
		<td class="td_save" width="120" align="right">菜单名称:</td>
		<td width="200">${menu.mname }</td>
	</tr>	
	<tr>		
		<td class="td_save" width="120" align="right" height="25">菜单样式:</td>
		<td width="200">${menu.iconCls }</td>
		<td class="td_save" width="120" align="right">是否有效:</td>
		<td width="200">
		  <c:if test="${menu.mstate=='0'}"><span style="color: red;">无效</span></c:if>
		  <c:if test="${menu.mstate=='1'}"><span style="color: blue;">有效</span></c:if>
		</td>
	</tr>
	<tr>		
		<td class="td_save" width="120" align="right" height="25">默认图标:</td>
		<td width="200">${menu.micon }</td>
		<td class="td_save" width="120" align="right">仿手机图标:</td>
		<td width="200">${menu.phoneIcon }</td>
	</tr>
	<tr>		
		<td width="120" align="right" class="td_save" height="25">仿Windows图标:</td>
		<td width="200">${menu.winIcon }</td>
		<td class="td_save" width="120" align="right">排序号:</td>
		<td width="200">${menu.seqnum }</td>
	</tr>
	<tr>
	  <td class="td_save" width="120" align="right">连接地址:</td>
	  <td colspan="3" height="25">${menu.murl }</td> 
	</tr>
	<tr>
	  <td class="td_save" width="120" align="right">备注说明:</td>
	  <td colspan="3" height="25">${menu.mremark }</td> 
	</tr>	
  </table>
  </fieldset>
  <fieldset class="fieldset">
  <legend class="legend">菜单对应的操作按钮</legend>
  <table width="96%" class="adminlist">
   <tr height="25">
      <th width="80">功能名称</th>
	  <th width="120">功能代码</th>	 
	  <th width="80">是否可用</th>
	  <th width="50">排序号</th>
	  <th width="100">按钮样式</th>
	  <th width="80">操作类型</th>	  	    
   </tr>
   <c:if test="${empty menu.listoperates}">
      <tr>	 
	    <td colspan="6" height="25" style="text-align: center;color: red;font-size: 14px;">
	       暂无对应的功能信息
	    </td>	      
    </tr>
  </c:if>
  <c:if test="${not empty menu.listoperates}">
     <c:forEach items="${menu.listoperates}" var="mboper" varStatus="status">         
         <tr>	 
		    <td style="text-align: center;font-size: 14px;">${mboper.operatename }</td>
		    <td style="text-align: center;font-size: 14px;">${mboper.operatecode }</td>			
		    <td style="text-align: center;font-size: 14px;">		     
		     <c:choose>
		       <c:when test="${mboper.operatestate==1}"><span style="color: blue;">是</span> </c:when>
		       <c:otherwise><span style="color: red;">否</span></c:otherwise>
		     </c:choose>
		    </td>
		    <td style="text-align: center;font-size: 14px;">${mboper.operseqnum }</td>
		    <td style="text-align: center;font-size: 14px;">
		     <c:choose>
		       <c:when test="${mboper.opertype=='FUNTREE'}">
		         <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="${mboper.operateIconCls }" id="menu_add" plain="true">${mboper.operatename }</a>   
     	       </c:when>
		       <c:otherwise><span style="color: red;">无样式</span></c:otherwise>
		     </c:choose>
		    </td>
		    <td style="text-align: center;font-size: 14px;">    
		     <c:if test="${mboper.opertype=='FUNTREE'}"><span style="color: red;">按钮</span></c:if>
		     <c:if test="${mboper.opertype=='BUSINE'}"><span style="color: blue;">业务</span></c:if>
		    </td>		   
       </tr>
     </c:forEach>  
  </c:if> 
 <tbody id="job">
 </tbody>  
 </table>  
</fieldset>
</form>
<div id="dlg-buttons" style="text-align: center;margin-top: 10px;margin-right: 20px;"> 
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:parent.$('#updateWin').window('close')" iconcls="icon-cancel">取消</a> 
</div> 
<jsp:include page="../../../common/easyui-js.inc" flush="true"/>
</body>
</html>
